<!-- if $_laydate -->
<ul class="layout">
	<li>
		<input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" onchange="$.phpokform.laydate_format('{$_rs.identifier}','{$_rs.form_btn}')" lay-key="laydate_{$_rs.identifier}" {if $_rs.note} placeholder="{$_rs.note}"{/if} />
	</li>
	<li style="margin-top:3px;">
		<div class="layui-btn-group">
			<input type="button" value="{$_laydate_button}" class="layui-btn layui-btn-sm" id="btn_{$_rs.identifier}_{$_rs.form_btn}" onclick="$.phpokform.laydate_button('{$_rs.identifier}','{$_rs.form_btn}')" />
			<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}');" />
		</div>
	</li>
</ul>
<!-- /if -->
<!-- if $_rs.form_btn == "file" -->
<div class="layui-row">
	<div class="layui-col-md8">
    	<input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} />
	</div>
	<div class="layui-col-md4">
		<div class="layui-margin-1">
			<div class="layui-btn-group">
				<input type="button" value="{lang选择文件}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_file_select('{$_rs.identifier}')" />
				<input type="button" value="{lang下载}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_file_download('{$_rs.identifier}')" />
				<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}');" />
			</div>
		</div>
	</div>
</div>
<!-- elseif $_rs.form_btn == "image" -->
<div class="layui-row">
	<div class="layui-col-md8">
    	<input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} />
	</div>
	<div class="layui-col-md4">
		<div class="layui-margin-1">
			<div class="layui-btn-group">
				<input type="button" value="{lang选择图片}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_image_select('{$_rs.identifier}')" />
				<input type="button" value="{lang预览}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_image_preview('{$_rs.identifier}')" />
				<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}');" />
			</div>
		</div>
	</div>
</div>
<!-- elseif $_rs.form_btn == "video" -->
<div class="layui-row">
	<div class="layui-col-md8">
    	<input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} />
	</div>
	<div class="layui-col-md4">
		<div class="layui-margin-1">
			<div class="layui-btn-group">
				<input type="button" value="{lang选择视频}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_video_select('{$_rs.identifier}')" />
				<input type="button" value="{lang预览}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_video_preview('{$_rs.identifier}')" />
				<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}');" />
			</div>
		</div>
	</div>
</div>
<!-- elseif $_rs.form_btn == "url" -->
<div class="layui-row">
	<div class="layui-col-md7">
    	<input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} />
	</div>
	<div class="layui-col-md5">
		<div class="layui-margin-1">
			<div class="layui-btn-group">
				<input type="button" value="{lang首页}" class="layui-btn layui-btn-sm" onclick="$('#{$_rs.identifier}').val('index.php')" />
				<input type="button" value="{lang网址库}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_url_select('{$_rs.identifier}')" />
				<input type="button" value="{lang访问}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_url_open('{$_rs.identifier}')" />
				<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}');" />
			</div>
		</div>
	</div>
</div>
<!-- elseif $_rs.form_btn == "user" -->
<ul class="layout">
	<li><input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} /></li>
	<li style="margin-top:3px;">
		<div class="layui-btn-group">
			<input type="button" value="{lang用户库}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_user_select('{$_rs.identifier}')" />
			<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}');" />
		</div>
	</li>
</ul>
<!-- elseif $_rs.form_btn == 'color' -->
<ul class="layout">
	<li><input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} /></li>
	<li><input type="button" value=" " id="preview_color_{$_rs.identifier}" style="width:30px;height:30px;border:0;margin:0;padding:0;display:block;" /></li>
	<li style="margin-top:3px;">
		<div class="layui-btn-group">
			<input type="button" value="{lang颜色选择}" class="layui-btn layui-btn-sm jscolor {valueElement:'{$_rs.identifier}', styleElement:'preview_color_{$_rs.identifier}',required:false{if $_rs.ext_include_3},hash:true{/if}}" />
			<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}')" />
		</div>
	</li>
</ul>
<!-- elseif $_rs.form_btn == 'rand16' || $_rs.form_btn == 'rand32' -->
<div class="layui-row">
	<div class="layui-col-md8">
    	<input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} />
	</div>
	<div class="layui-col-md4">
		<div class="layui-margin-1">
			<div class="layui-btn-group">
				<!-- if $_rs.form_btn == 'rand16' -->
				<input type="button" value="{lang随机数}" class="layui-btn layui-btn-sm" onclick="$('input[name={$_rs.identifier}]').val($.phpok.rand(16,'fixed'))" />
				<!-- else -->
				<input type="button" value="{lang随机数}" class="layui-btn layui-btn-sm" onclick="$('input[name={$_rs.identifier}]').val($.phpok.rand(32,'fixed'))" />
				<!-- /if -->
				<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}');" />
			</div>
		</div>
	</div>
</div>
<!-- elseif $_rs.form_btn && strpos($_rs.form_btn,'title:') !== false -->
<ul class="layout">
	<li><input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} /></li>
	<li style="margin-top:3px;">
		<div class="layui-btn-group">
			<input type="button" value="{$_rs.extitle}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_title('{$_rs.id}')" />
			<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}');" />
		</div>
	</li>
</ul>
<!-- elseif !$_rs.form_btn -->
	<input type="text" id="{$_rs.identifier}" class="layui-input inp inp_{$_rs.identifier}" name="{$_rs.identifier}"{if $_rs.form_style} style="{$_rs.form_style}"{/if} value="{$_rs.content}" {if $_rs.note} placeholder="{$_rs.note}"{/if} />
	<!-- if $_rs.ext_quick_words -->
	<div class="layui-btn-group" style="margin-top:3px;">
		<!-- loop from=$_rs.ext_quick_words key=$key value=$value id=$tmpid -->
		<input type="button" value="{$value.show}" class="layui-btn layui-btn-sm" onclick="$.phpokform.text_button_quickwords('{$_rs.identifier}','{$value.id}','{$_rs.ext_quick_type}')" />
		<!-- /loop -->
		<input type="button" value="{lang清除}" class="layui-btn layui-btn-sm layui-btn-warm" onclick="$.phpokform.clear('{$_rs.identifier}')" />
	</div>
	<!-- /if -->
<!-- /if -->
<!-- if $_rs.js_admin -->
<script type="text/javascript">
$(document).ready(function(){
	{$_rs.js_admin}
});
</script>
<!-- /if -->